package com.czf.personal.controller;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zfChen
 * @create 2022/4/14 10:22
 */
@CrossOrigin
@RestController
@Slf4j
public class HelloController {

    @Value("${personal.fileAddress}")
    private String adress;


    @RequestMapping(value = "/postMethod",method = RequestMethod.POST)
    @ApiOperation(value = "测试")
    public String postmethod(String str){
        log.info(str);
        log.info(adress);
        return str;
    }
}
